﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PC.AzureMultiApp.Storage;
using PC.AzureMultiApp.Core.Helpers;
using PC.AzureMultiApp.Core.Counters;
using PC.AzureMultiApp.WebRoleMultiApp.Helpers;

namespace PC.AzureMultiApp.WebRoleMultiApp.Controllers
{
    [ValidaAdminRole()]  
    public class CounterController : Controller
    {
        public ActionResult Counter()
        {
            return View(Counters.GetCounters(true));
        }

        public ActionResult Clear()
        {
            Counters.Clear();

            return RedirectToAction("Counter", "Counter");
        }  
    }
}
